package com.gxuwz.stats.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gxuwz.stats.entity.CreativeAchievement;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface CreativeAchievementMapper extends BaseMapper<CreativeAchievement> {

    @Insert("INSERT INTO rsp_creative_achievement " +
            "(user_id, creative_achievement_name, creative_category, creative_level, creative_score, creative_notes) " +
            "VALUES " +
            "(#{userId}, #{creativeAchievementName}, #{creativeCategory}, #{creativeLevel}, #{creativeScore}, #{creativeNotes})")
    int insertWithUserId(CreativeAchievement creativeAchievement);

}
